<template>
	<mescroll-uni :ref="'mescrollRef'+tabIndex" @init="mescrollInit"   @down="downCallback" @up="upCallback">
		<view class="u-padding-left-32 u-padding-right-32 swiper-box-padding" v-if="dataList.length">
			<view  v-for="(item,index) in dataList" :key="index" class="u-margin-bottom-20">
				<item-box padding="20">
					<reply-item  :item="item" :showProductName="false"></reply-item>
				</item-box>
			</view>
			
		</view>
	</mescroll-uni>
</template>

<script>
	import upCallback from '@/mixins/upCallbackMixin.js'
	import replyItem from '@/components/replyItem/replyItem.vue'
	export default {
		components: {
			replyItem
		},
		mixins:[upCallback],
		props:{
			tab:{
				type:Object,
				default:()=>({})
			},
			tabIndex:{
				type:Number,
				default:0
			},
			inputName:{
				type:String,
				default:''
			},
		},
		data() {
			return {
				form:{
					productId:''
				},
				apiModule:'shopApi',
				apiType:'',
				name:''
			}
		},
		created() {
			this.form.productId = this.tab.productId
			this.form.uid=""
			if(this.tabIndex==0){ //商品剧本评价
				this.apiType = 'storeProductReply';
				this.name = ''
			}
			if(this.tabIndex==1){
				this.apiType = 'exhibitProductComment';
				this.name = 'getSystemStoreProductComments';
			}
		},
	}
</script>

<style>
</style>
